package kr.saeildamil.androidStudy_second.fragment;

import kr.saeildamil.androidStudy_second.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class FragmentMain extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_fragment);
	}

	public void mOnClick(View v) {
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch20_fragment_btn01:
			intent.setClass(this, FragmentLifeCycle.class);
			break;
		case R.id.ch20_fragment_btn02:
			intent.setClass(this, FragmentTest.class);
			break;
		case R.id.ch20_fragment_btn03:
			intent.setClass(this, ReuseFragment.class);
			break;
		case R.id.ch20_fragment_btn04:
			intent.setClass(this, FragmentMgn01.class);
			break;
		case R.id.ch20_fragment_btn05:
			intent.setClass(this, TwoFragment.class);
			break;
		case R.id.ch20_fragment_btn06:
			intent.setClass(this, FragmentManagerTest.class);
			break;
		case R.id.ch20_fragment_btn07:
			intent.setClass(this, FragmentArgument.class);
			break;
		case R.id.ch20_fragment_btn08:
			intent.setClass(this, ListFragmentTest.class);
			break;
		case R.id.ch20_fragment_btn09:
			intent.setClass(this, WordListFragmentTest.class);
			break;
		case R.id.ch20_fragment_btn10:
			intent.setClass(this, MultiPaneWidth.class);
			break;
		}
		startActivity(intent);
	}

}
